package com.example.commonbiz

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch

class LoginViewModel : ViewModel() {
    private val repository = LoginRepository()
    val user = MutableLiveData<String?>()

    fun login(userEntity: RequestUser) {
        viewModelScope.launch {
            user.value = repository.login(userEntity)
        }
    }
}